package indi.storyoftime.rasite.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName(value = "album", autoResultMap = true)
public class Album implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 相册名称
     */
    @NotNull
    private String name;

    /**
     * 相册简介
     */
    private String description;

    /**
     * 相册封面
     */
    private String coverUrl;

    /**
     * 是否已删除
     */
    private Integer isDeleted;

    /**
     * 相册创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 相册最后更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
